<include file="Admin:header" />
<load href="./Public/Js/swfupload.js"/>
<div id="msg"></div>
<form name="myform" id="myform" action="<if condition="$action_name=='add'">{:U($module_name.'/insert')}<else />{:U($module_name.'/update')}</if>" method="post">
<div id="filelist" class="hide"></div>
<div class="error"><ul></ul></div>





<table cellpadding=0 cellspacing=0 class="table_form" width="100%">

	<tr>
		<td width="120">产品编码</td>
        <td id="box_productcode">
		<input type="text"   class="input-text " name="productcode"  id="productcode" value="{$vo['productcode']}" size="50"  validate="" /> 		</td>
	</tr><tr>
		<td width="120">容量</td>
        <td id="box_capacity">
		<input type="text"   class="input-text " name="capacity"  id="capacity" value="{$vo['capacity']}" size="50"  validate="" /> 		</td>
	</tr><tr>
		<td width="120">品牌</td>
        <td id="box_brand">
		<input type="text"   class="input-text " name="brand"  id="brand" value="{$vo['brand']}" size="50" validate="" /> 		</td>
	</tr><tr>
		<td width="120">电压</td>
        <td id="box_voltage">
		<input type="text"   class="input-text " name="voltage"  id="voltage" value="{$vo['voltage']}" size="50"  validate="" /> 		</td>
	</tr><tr>
		<td width="120">颜色</td>
        <td id="box_color">
		<input type="text"   class="input-text " name="color"  id="color" value="{$vo['color']}" size="50" validate="" /> 		</td>
	</tr><tr>
		<td width="120">尺寸</td>
        <td id="box_size">
		<input type="text"   class="input-text " name="size"  id="size" value="{$vo['size']}" size="50" validate="" /> 		</td>
	</tr><tr>
		<td width="120">重量</td>
        <td id="box_weight">
		<input type="text"   class="input-text " name="weight"  id="weight" value="{$vo['weight']}" size="50"  validate="" /> 		</td>
	</tr><tr>
		<td width="120">价格</td>
        <td id="box_dollarpreferential">
		<input type="text"   class="input-text " name="dollarpreferential"  id="dollarpreferential" value="{$vo['dollarpreferential']}" size="50"  validate="" /> 		</td>
	</tr><tr>
		<td width="120">图片地址</td>
        <td id="box_dollarmarket">
		<textarea name="dollarmarket"  id="dollarmarket" style="width:400px;height:100px;">{$vo['dollarmarket']}</textarea></td>
	</tr>

<tr>
		<td width="120">适合机型</td>
        <td id="box_title">
		<div style="display:none;" class="thumb_box"  id="thumb_box"><div id="thumb_aid_box"></div>
				<a href="javascript:swfupload('thumb_uploadfile','thumb','文件上传',1,1,1,'jpeg,jpg,png,gif',3,11,yesdo,nodo)"><img src="/Public/Images/admin_upload_thumb.png" id="thumb_pic" ></a><br> <input type="button" value="取消缩略图" onclick="javascript:clean_thumb('thumb');" class="button" />
				<input type="hidden"  id="thumb" name="thumb"  value="" /></div>
		<textarea name="title"  id="title" style="width:400px;height:100px;">{$vo['title']}</textarea>
		</td>
	</tr>
	<tr>
		<td width="120">电池编码</td>
        <td id="box_battery">
		<textarea name="battery" id="battery" style="width:400px;height:100px;">{$vo['battery']}</textarea>
		</td>
	</tr>
	<tr>
		<td width="120">说明</td>
        <td id="box_content">
		<div class="editor_box"><div id="content_aid_box"></div><textarea name="content" class="" id="content"  boxid="content" validate=""  >{$vo['content']}</textarea><script type="text/javascript" src="/Public/ckeditor/ckeditor.js"></script><script type="text/javascript"> 
CKEDITOR.replace( 'content',{height:300,pages:1,flashupload:1,textareaid:'content',iframeid:'swfupload',file_limit:20,file_types:'jpg,gif,png',moduleid:23,file_size:5,yesdo:'insert2editor',nodo:'nodo',
toolbar :
[
['Source','-','Templates'],
		    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print'],
		    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['ShowBlocks'],['Image','Flash'],['Maximize'],
		    '/',
		    ['Bold','Italic','Underline','Strike','-'],
		    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
		    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		    ['Link','Unlink','Anchor'],
		    ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
		    '/',
		    ['Styles','Format','Font','FontSize'],
		    ['TextColor','BGColor'],
]
});
</script><div class='editor_bottom'></div></div>		</td>
	</tr><tr>
		<td width="120">发布时间</td>
        <td id="box_createtime">
		<input  class="Wdate input-text  "  validate=""   name="createtime" type="text" id="createtime" size="25" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'
		})" value="<?php echo date('Y-m-d H:i:s'); ?>" />		</td>
	</tr>
		</table>










		<div id="bootline"></div>
		<div id="btnbox" class="btn">
		<if condition="$vo['id']!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
		<INPUT TYPE="submit"  value="{:L('dosubmit')}" class="button" >
		<input TYPE="reset"  value="{:L('cancel')}" class="button">
		</div>
{__TOKEN__}
</form>
</div>